package IMIC.NGUYENVANDOAN.OOP.SAMPLE;

public class Views {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // 1. Khai báo & khởi tạo đối tượng
        Student sv01 = new Student();
        Student sv02 = new Student();
        Student sv03 = new Student(100, "Nguyễn Văn A", "0988888", 8.5);
        Student sv04 = new Student(200, "Trần Thị B", "098343434", 9.5);

        // 2. Hiển thị thông tin của đối tượng
        System.out.println("--------SV01---------");
        System.out.println("+ RollNo: " + sv01.getRollNo());
        System.out.println("+ FullName: " + sv01.getFullName());
        System.out.println("+ Phone: " + sv01.getPhone());
        System.out.println("+ Mark: " + sv01.getMark());

        System.out.println("--------SV02---------");
        System.out.println("+ RollNo: " + sv02.getRollNo());
        System.out.println("+ FullName: " + sv02.getFullName());
        System.out.println("+ Phone: " + sv02.getPhone());
        System.out.println("+ Mark: " + sv02.getMark());

        System.out.println("--------SV03---------");
        System.out.println("+ RollNo: " + sv03.getRollNo());
        System.out.println("+ FullName: " + sv03.getFullName());
        System.out.println("+ Phone: " + sv03.getPhone());
        System.out.println("+ Mark: " + sv03.getMark());

        System.out.println("--------SV04---------");
        System.out.println("+ RollNo: " + sv04.getRollNo());
        System.out.println("+ FullName: " + sv04.getFullName());
        System.out.println("+ Phone: " + sv04.getPhone());
        System.out.println("+ Mark: " + sv04.getMark());

        // SET
        sv02.setRollNo(300);
        sv02.setFullName("Hoàng Văn C");
        sv02.setPhone("09999999999");
        sv02.setMark(8.5);

        System.out.println("--------SV02---------");
        System.out.println("+ RollNo: " + sv02.getRollNo());
        System.out.println("+ FullName: " + sv02.getFullName());
        System.out.println("+ Phone: " + sv02.getPhone());
        System.out.println("+ Mark: " + sv02.getMark());
    }
}
